package com.example.shardingsphere.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.example.shardingsphere.entity.Order;
import com.example.shardingsphere.entity.OrderItem;

import java.util.List;

public interface OrderService extends IService<Order> {
    Integer saveOrder(Order order);

    Integer saveOrderItem(OrderItem orderItem, Integer userId);

    Order selectBySharding(Integer userId, Integer orderId);

    Order selectBySharding2(Integer userId, Integer orderId);

    List<Order> selectByRangeSharding(Integer userId, Integer oidStart, Integer oidEnd);

}
